package com.aaa.web.service.icarhouseservice;

import com.aaa.entity.BackSchool;
import com.aaa.entity.repair.BackEntrepot;
import com.aaa.web.commons.NewCarQuery;
import java.util.List;
import java.util.Map;

/**
* @program: ${PROJECT_NAME}
* @description: 获取所有的新车车辆
* @author: 王璐
* @create: 20:05 2018/12/21
**/
public interface ICarHouseService {
    /**
     * 获取所有的新车车辆
     * @param query
     * @return
     */
    Map getAllCar(NewCarQuery query);

    /**
     * 查询新车车辆
     * @param query
     * @param backEntrepot
     * @return
     */
    Map selectCar(NewCarQuery query, BackEntrepot backEntrepot);

    /**
     * 查询新车仓库的所有学校
     * @return
     */
    List<BackSchool> selectSchoolList();

    /**
     * 添加新车
     * @param backEntrepot
     * @return
     */
    int addCar(BackEntrepot backEntrepot);

    /**
     * 补货
     * @param goodsName
     * @param goodsQuantity
     * @param goodsCost
     * @return
     */
    int addOneTypeCar(String goodsName,int goodsQuantity,double goodsCost);

    /**
     * 编辑
     * @param goodsName
     * @param oldGoodsName
     * @return
     */
    int editOneTypeCar(String goodsName,String oldGoodsName);
}
